<template>
  <div>
    <el-divider></el-divider>
    <div style="font-size:20px;text-align:left">
      <i class="el-icon-document-checked">检验申请</i>
    </div>
    <el-divider></el-divider>
    <el-row :gutter="20">
      <el-col :span="6"><el-input v-model="input_patient_id" placeholder="请输入患者病历号"></el-input></el-col>
      <el-col :span="6"><el-input v-model="input_patient_name" placeholder="请输入患者姓名"></el-input></el-col>      
      <el-col :span="2"><el-button @click="getWaitInspection(1)">搜索</el-button></el-col>
      <el-col :span="10"> </el-col>
    </el-row>
    <el-divider></el-divider>
    <el-table
      :data="wait_inspection"      style="width: 80%">
      <el-table-column        type="index"     label="编号"        width="80"></el-table-column>
      <el-table-column        prop="real_name"        label="患者姓名"        width="180"></el-table-column>
      <el-table-column        prop="case_number"        label="患者病历号">     </el-table-column>
      <el-table-column label="操作">
      <template slot-scope="scope">
        <el-button   size="mini" @click="createInspectionApply(scope.$index, scope.row)">进行检验</el-button>
        <el-button size="mini" >跳过</el-button>
        <el-button size="mini" >叫号</el-button>
      </template>
    </el-table-column>
    </el-table>
    <el-divider></el-divider>
    <el-pagination
    :page-size="pageSize" :total="totalCount" @current-change="wait_patient_table_change"
    layout="prev, pager, next">
  </el-pagination>
  </div>
</template>
<script>
    export default {
      data() {
        return {
          input_patient_id:'',
          input_patient_name:'',
          pageSize:5,//每页显示行数
          totalCount:0,
          finish_inspection_count:0,//已经检验完成人数
          wait_inspection_count:0,//等待检验人数
          wait_inspection: []
        }
      },
      methods:{

      },
      mounted() {
      }
    }
  </script>